package com.jumi.microservice.exception;

import com.jumi.microservice.common.enumeration.IResponseEnum;

/**
 * @author Scw
 * @date 2020-08-21 15:49
 * 🔨🔨🔨🔨🔨
 */
public enum CompensationExceptionEnum implements IResponseEnum {
    //补偿信息
    INFO_NO_EXIST(500, "补偿信息不存在！"),
    ID_LESS_ZERO(500, "补偿ID不能小于0！"),
    ORDER_STATUS_NOT_ALLOW(500, "当前订单状态不能发起申请！"),
    GOODS_STATUS_NOT_ALLOW(500, "当前商品状态不能发起申请！"),
    CHECKBOX_NO(500, "请至少选择一条信息！"),
    MONEY_LESS_ZERO(500, "补偿金额必须大于0！"),
    GOODS_GIVEUP_CANNOT_POSTAGE(500, "由于商品已选择弃货，无法发起补偿邮费。");

    private Integer code;
    private String message;

    CompensationExceptionEnum(int code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    @Override
    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
